package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.busyfarming.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class BusyFarmingBusiness {

    public static List<BusyFarmingGradeInfo> getGradeInfoList(int activityId) {
        return DaoHelper.getBusyFarmingGradeInfoDaoImpl().getBusyFarmingGradeInfo(activityId);
    }

    public static Map<Long, BusyFarmingUserData> getUserDataMap(int activityId) {
        return DaoHelper.getBusyFarmingUserDataDaoImpl().getBusyFarmingUserData(activityId);
    }

    public static Map<Long, List<BusyFarmingHelpRecord>> getUserHelpRecordMap(int activityId) {
        return DaoHelper.getBusyFarmingHelpRecordDaoImpl().getBusyFarmingHelpRecord(activityId);
    }

    public static Map<Long, List<BusyFarmingUserReward>> getUserRewardMap(int activityId) {
        return DaoHelper.getBusyFarmingUserRewardDaoImpl().getBusyFarmingUserReward(activityId);
    }

    public static Map<Long, List<BusyFarmingStolenRecord>> getUserStolenRecordMap(int activityId) {
        return DaoHelper.getBusyFarmingStolenRecordDaoImpl().getBusyFarmingStolenRecord(activityId);
    }

    public static long getMaxUserRewardDbId(int activityId) {
        return DaoHelper.getBusyFarmingUserRewardDaoImpl().getMaxUserRewardDbId(activityId);
    }

    public static long getMaxUserHelpDbId(int activityId) {
        return DaoHelper.getBusyFarmingHelpRecordDaoImpl().getMaxUserHelpDbId(activityId);
    }

    public static long getMaxUserStolenDbId(int activityId) {
        return DaoHelper.getBusyFarmingStolenRecordDaoImpl().getMaxUserStolenDbId(activityId);
    }

    public static boolean addBusyFarmingUserData(BusyFarmingUserData data) {
        return DaoHelper.getBusyFarmingUserDataDaoImpl().add(data);
    }

    public static boolean updateBusyFarmingUserData(BusyFarmingUserData data) {
        return DaoHelper.getBusyFarmingUserDataDaoImpl().update(data);
    }

    public static boolean addBusyFarmingUserReward(BusyFarmingUserReward reward) {
        return DaoHelper.getBusyFarmingUserRewardDaoImpl().add(reward);
    }

    public static boolean updateBusyFarmingUserReward(BusyFarmingUserReward reward) {
        return DaoHelper.getBusyFarmingUserRewardDaoImpl().update(reward);
    }

    public static boolean addBusyFarmingHelpRecord(BusyFarmingHelpRecord record) {
        return DaoHelper.getBusyFarmingHelpRecordDaoImpl().add(record);
    }

    public static boolean updateBusyFarmingHelpRecord(BusyFarmingHelpRecord record) {
        return DaoHelper.getBusyFarmingHelpRecordDaoImpl().update(record);
    }

    public static boolean addBusyFarmingStolenRecord(BusyFarmingStolenRecord record) {
        return DaoHelper.getBusyFarmingStolenRecordDaoImpl().add(record);
    }

    public static boolean updateBusyFarmingStolenRecord(BusyFarmingStolenRecord record) {
        return DaoHelper.getBusyFarmingStolenRecordDaoImpl().update(record);
    }
}
